<%--
  Created by IntelliJ IDEA.
  User: CFlower
  Date: 2017/11/7
  Time: 18:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    <title>时间工况管理</title>

    <link rel="stylesheet" type="text/css" href="jquery/easyui1.4.2/themes/gray/easyui.css">
    <link rel="stylesheet" type="text/css" href="jquery/easyui1.4.2/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="mintor/css/layout.css"/>
    <link rel="stylesheet" type="text/css" href="css/assets/css/ace.min.css"/>

    <script type="text/javascript" src="jquery/easyui1.4.2/jquery.min.js"></script>
    <script type="text/javascript" src="jquery/easyui1.4.2/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="jquery/easyui1.4.2/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="jquery/extJs.js"></script>
    <script type="text/javascript" src="mintor/sensorConfiguration/js/timeMachining.js"></script>
    <script type="text/javascript" src="js/date.js"></script>

    <c:if test="${fn:contains(sessionInfo.resourceList, '/timeMachining/edit')}">
        <script type="text/javascript">
            $.canEdit = true;
        </script>
    </c:if>
    <c:if test="${fn:contains(sessionInfo.resourceList, '/timeMachining/delete')}">
        <script type="text/javascript">
            $.canDelete = true;
        </script>
    </c:if>

</head>
<body style="background-color: white;">

<div class="widget-box" style="margin:16px 24px;padding-bottom:15px;text-align: center;">
    <div class="widget-header header-color-blue" style="border-top-left-radius:10px;border-top-right-radius:10px;">
        <h4 style="color:white;font-family: '微软雅黑'">时间工况管理</h4>
    </div>
    <div class="widget-body" style="border-bottom-right-radius:10px;border-bottom-left-radius:10px;">
        <div class="widget-main">
            <div class="row" style="min-height:400px;">
                <%--“添加”按钮--%>
                <div class="easyui-layout" data-options="fit:true,border:false">
                    <div data-options="region:'center',fit:true,border:false">
                        <table id="dataGrid" data-options="fit:true,border:false"></table>
                    </div>
                    <div id="toolbar" style="display: none;">
                        <c:if test="${fn:contains(sessionInfo.resourceList, '/timeMachining/add')}">
                            <a onclick="addtimeMachining();" href="javascript:void(0);" class="easyui-linkbutton"
                               data-options="plain:true,iconCls:'icon-add'">添加</a>
                        </c:if>
                    </div>
                </div>

                <%--“添加”按钮打开的对话框资源--%>
                <div id="dia-add">
                    <form id="form-add" method="post">
                        <div class="diacont">
                            <table align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="label">设备:</td>
                                    <td>
                                        <input name="equipmentId" type="text" id="e_id" class="easyui-combobox select"
                                               data-options="required:true">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">工况:</td>
                                    <td>
                                        <input name="machiningId" type="text" id="p_id" class="easyui-combobox select"
                                               data-options="required:true">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">日期:</td>
                                    <td>
                                        <input name="machiningDate" id="machiningDate" class="easyui-datebox select" data-options="editable:false" >
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">开始时间:</td>
                                    <td>
                                        <input name="startTime" id="startTime" class="easyui-timespinner" required="required" data-options="min:'00:00:00',showSeconds:true" >
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">结束时间:</td>
                                    <td>
                                        <input name="endTime"  id="endTime" class="easyui-timespinner" required="required" data-options="min:'00:00:00',showSeconds:true" >
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">备注:</td>
                                    <td>
                                        <input name="descript"  id="descript" class="easyui-textbox" data-options="multiline:true" style="width:200px;height:100px" >
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </form>
                </div>

                <div id="dia-edit">
                    <form action="timeMachining/edit" method="post" id="form-edit">
                        <input type="hidden" name="id">
                        <div class="diacont">
                            <table align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="label">设备:</td>
                                    <td>
                                        <input name="equipmentId" type="text" id="e_id" class="easyui-combobox select"
                                               data-options="required:true">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">工况:</td>
                                    <td>
                                        <input name="machiningId" type="text" id="p_id" class="easyui-combobox select"
                                               data-options="required:true">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">日期:</td>
                                    <td>
                                        <input name="machiningDate" id="machiningDate" class="easyui-datebox select" data-options="editable:false" >
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">开始时间:</td>
                                    <td>
                                        <input name="startTime" id="startTime" class="easyui-timespinner" required="required" data-options="min:'00:00:00',showSeconds:true" >
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">结束时间:</td>
                                    <td>
                                        <input name="endTime"  id="endTime" class="easyui-timespinner" required="required" data-options="min:'00:00:00',showSeconds:true" >
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">备注:</td>
                                    <td>
                                        <input name="descript"  id="descript" class="easyui-textbox" data-options="multiline:true" style="width:200px;height:100px" >
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>


</body>
</html>

